<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>  
    <link rel="stylesheet" href="/person/Public/css/Home/pintuer.css">
    <link rel="stylesheet" href="/person/Public/css/Home/admin.css">
    <link href="/person/Public/libs/layer/skin/layer.css" rel="stylesheet">
    <script src="/person/Public/js/Home/jquery.js"></script>
    <script src="/person/Public/js/Home/addperson.js"></script>
    <script src="/person/Public/libs/layer/layer.js"></script>
   
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="/person/Public/img/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />人力资源管理系统</h1>
  </div>
  <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="__URL__/doLogout" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="__URL__/doLogout"><span class="icon-power-off"></span> 退出登录</a> </div>
</div>
<div class="leftnav">
  <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
  <h2><span class="icon-user"></span>员工管理</h2>
  <ul style="display:block">
    <li><a href="/person/index.php/Home/Addperson/index.html" target="right"><span class="icon-caret-right"></span>员工添加</a></li>
    <li><a href="/person/index.php/Home/Index/manage.html" target="right"><span class="icon-caret-right"></span>员工列表</a></li>
  </ul> 
   <h2><span class="icon-user"></span>部门管理</h2>
  <ul style="display:block">
    <li><a href="/person/index.php/Home/Addsector/index.html" target="right"><span class="icon-caret-right"></span>新增部门</a></li>
    <li><a href="/person/index.php/Home/Listsector/index.html" target="right"><span class="icon-caret-right"></span>部门设置</a></li>
  </ul> 
   <h2><span class="icon-user"></span>职位管理</h2>
  <ul style="display:block">
    <li><a href="/person/index.php/Home/Addposition/index.html" target="right"><span class="icon-caret-right"></span>新增职位</a></li>
    <li><a href="/person/index.php/Home/Listposition/index.html" target="right"><span class="icon-caret-right"></span>职位列表</a></li>
  </ul> 
   <h2><span class="icon-user"></span>人事管理</h2>
  <ul style="display:block">
    <li><a href="/person/index.php/Home/Change/index.html" target="right"><span class="icon-caret-right"></span>人事变更</a></li>
  </ul>   
  <h2><span class="icon-pencil-square-o"></span>招聘管理</h2>
  <ul>
    <li><a href="/person/index.php/Home/Addemployment/index.html" target="right"><span class="icon-caret-right"></span>需求填报</a></li>
    <li><a href="/person/index.php/Home/Listemployment/index.html" target="right"><span class="icon-caret-right"></span>招聘岗位</a></li>    
  </ul>  
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<ul class="bread">
  <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
  <li><a href="##" id="a_leader_txt">网站信息</a></li>
  <li><b>当前语言：</b><span style="color:red;">中文</php></span>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>
<div class="admin">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>员工编辑</strong></div>
  <div class="body-content">
    <div class="form-x">
      <div name="personId" hidden>
        <input type="text" id="id" value="{$personId}" />
      </div>

      <div class="form-group">
        <div class="label">
        <label>工号：</label>
        </div>
        <div class="field" name="personNumber">
          <input type="text" class="input w50" id="number" value="{$personNumber}" data-validate="required:请输入工号" />
          <div class="tips"></div>
        </div>
      </div> 
      <div class="form-group">
        <div class="label">
        <label>姓名：</label>
        </div>
        <div class="field" name="personName">
          <input type="text" class="input w50" id="name" value="{$personName}"  data-validate="required:请输入姓名" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
        <label>年龄：</label>
        </div>
        <div class="field" name="personAge">
          <input type="text" class="input w50" id="age" value="{$personAge}" data-validate="required:请输入年龄" />
          <div class="tips"></div>
        </div>
      </div> 
       <div class="form-group">
        <div class="label">
        <label>性别：</label>
        </div>
        <div class="field" name="personSex">
        <select id="sex" value="{$personSex}">
           <if condition="($personSex eq 1)">
              <option class="input w50" value="1" selected>男</option>
          <else />
              <option class="input w50" value="0" selected>女</option>
          </if>              
        </select>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
        <label>联系方式：</label>
        </div>
        <div class="field" name="personPhone">
          <input type="text" class="input w50" id="phone" value="{$personPhone}" data-validate="required:请输入联系方式" />
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label>家庭住址：</label>
        </div>
        <div class="field" name="personAddress">
          <textarea type="text" class="input" id="address" style="height:80px;">{$personAddress}</textarea>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
        <label>薪资：</label>
        </div>
        <div class="field" name="personSalary">
          <input type="text" class="input w50" value="{$personSalary}" id="salary" data-validate="required:请输入工资" />
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
        <label>岗位：</label>
        </div>
        <div class="field" name="sector_id">
        <select class="input w50" id="sector_id" >
          <foreach name="arrS" item="sector">
          <if condition="($sector.id eq $sector_id)">
             <option value="{$sector.id}" selected>{$sector.name}</option>
          <else />
             <option value="{$sector.id}">{$sector.name}</option>
          </if>            
          </foreach>  
        </select>        
        </div>
      </div>

       <div class="form-group">
        <div class="label">
        <label>职位：</label>
        </div>
        <div class="field" name="position_id">
        <select class="input w50" id="position_id" >
          <foreach name="arrP" item="position">
          <if condition="($position.id eq $position_id)">
             <option value="{$position.id}" selected>{$position.name}</option>
          <else />
             <option value="{$position.id}">{$position.name}</option>
          </if>            
          </foreach>  
        </select>        
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" id="editperson"> 提交</button>
        </div>
      </div>
    </div>
  </div>
</div>
<div style="text-align:center;">

</div>
</body>
</html>